<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>new_notice</title>
	<!-- 为IE9之前的版本创造HTML5的元素 -->
	<!--[if lt IE 9]>
		<script>
			var e = ("abbr,article,aside,audio,canvas,datalist,details,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video").split(',');
			for(var i = 1; i < e.length; i++)
				document.createElement(e[i]);
		</script>
	<![endif]-->
	<link rel="stylesheet" href='../Public/css/new_notice.css' />
	<script src="../Public/js/jquery.js" type="text/javascript"></script>
</head>
<body onload="check();">
<!-- 最新公告-->
<div id="new_notice">
	<table id="n_n_table">
		<tr id="firstTr"  style="font-weight:600;">
			<td class="n_firstTd">标题</td>
			<td class="n_secondTd">发布人</td>
			<td class="n_thirdTd">类型</td>
			<td class="n_fourthTd">发布时间</td>
		</tr>
		<volist name="list" id="vo">
		<tr class="afterTr"  style="color:#666;">
			<td class="n_firstTd"><a href="__URL__/view/?id={$vo.id}" target="_blank" title="{$vo.title}" name="con_1">{$vo.title}</a></td>
			<td class="n_secondTd">{$vo.publisher}</td>
			<td class="n_thirdTd">{$vo.type}</td>
			<td class="n_fourthTd">{$vo.publishtime|date="y-m-d",###}</td>
		</tr>
		</volist>
	</table>
	<div id="pageUpDown">
		<span id="n_upPage">{$show}</span>
	</div>
</div>
<script>
	function check(){
		var height= window.innerHeight;
		if(height == "434"){
			$("#pageUpDown").css("top","411px");
		}
	//当文字超过num个时，后面的变成...
		var con_1 = document.getElementsByName("con_1");
		var n = con_1.length;
		for(var i=0;i < n; i++){
			var o = con_1[i].innerHTML;
			if(o.length > 26){
				o = o.substr(0,26);
				o += "...";
			}
			con_1[i].innerHTML = o;
		}
	}
</script>
</body>
</html>
